<me:UIAM x:Class="WPFExcelReport.TSZL02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIAM.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:Divideby1440  x:Key="day"/>
        <ucd:Divideby480  x:Key="shift"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIAM.Resources>
    <WrapPanel>
        <Button  Grid.Column="1" Click="ManageCommand" 
                 Width="16" Height="16" HorizontalAlignment="Left" 
                 Visibility="{Binding IsMaster,Converter={StaticResource bv}}" >
            <Button.Background>
                <ImageBrush  ImageSource="/ImagePackage;component/Images/Extend.png" />
            </Button.Background>
        </Button>
        <TextBlock Grid.Row="0"  Width="Auto"  Margin="0,0,0,0" Text="{Binding Source={Localization:Translate Word=机台}}"  VerticalAlignment="Center"/>
        <ComboBox   DropDownOpened="ComboBox_DropDownOpened" Grid.Row="1"
             ItemsSource="{Binding Source={StaticResource vwMaster}}"
               Margin="10,0,0,0" 
               IsSynchronizedWithCurrentItem="True"
               Background="White"  MinWidth="60" 
               DisplayMemberPath="AMBEZ"
               IsEditable="True"
               VerticalAlignment="Center"
               SelectedValuePath="AMBEZ" 
               />
    </WrapPanel>
</me:UIAM> 
 
